import request from '/@/utils/request'

/**
 * 分页查询部门
 * @param data 
 * @returns 
 */
export const deptPage = (data: any) =>{
  return request.post('/sys/dept/page',data)
}
/**
 * 部门详情
 * @param data 
 * @returns 
 */
export const deptDetail = (data: any) =>{
  return request.post('/sys/dept/detail',data)
}
/**
 * 添加部门
 * @param data 
 * @returns 
 */
export const deptSave = (data: any) =>{
  return request.post('/sys/dept/save',data)
}
/**
 * 修改部门
 * @param data 
 * @returns 
 */
export const deptUpdate = (data: any) =>{
  return request.post('/sys/dept/update',data)
}